/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Controller;

import DAO.DAO_Categories;
import Entity.Categories;
import java.util.ArrayList;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author THANHDAT
 */
@ManagedBean
@RequestScoped
public class CategoryBean {
    
    List<Categories> lstCate = new ArrayList<Categories>();   
    
    /** Creates a new instance of CategoryBean */
    public CategoryBean() {
    }

    public List<Categories> getLstCate() {
        return lstCate;
    }

    public void setLstCate(List<Categories> lstCate) {
        this.lstCate = lstCate;
    }
    
    public List<Categories> getshowCategory(){
        lstCate = DAO_Categories.showCategory();
        return lstCate;
    }
}
